package com.sh.jvm;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class StringTest {
    public static void main(String[] args) {

        String a="1";
        String b="2";
        String c = "1"+"2";
        String d = a+b;
        String f ="12";
        String e = new String("1")+new String("2");
        System.out.println(c==f);
//        StringBuffer

    }
}

